package cn.wolfcode.mycat.mapper;

import cn.wolfcode.mycat.domain.Company;
import cn.wolfcode.mycat.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by wolfcode-lanxw
 */
@Mapper
public interface CompanyMapper {
    @Insert("insert into company(id,name,addr) value (#{id},#{name},#{addr})")
    int insert(Company company);
    @Select("select * from company")
    List<Company> selectAll();
}
